package com.tz.controller;


import com.tz.AppConfig;
import com.tz.entity.User;
import com.tz.service.UserService;
import com.tz.util.MyAcUtil;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * User 控制器
 */
public class UserController {

    private UserService userService =
            MyAcUtil.getInstance().getBean(UserService.class);

    public UserController() {
        System.out.println("UserController 空参构造...");
    }

    public String save() {
        this.userService.save(new User());
        return "";
    }

    ;

//	String update();
//
//	String delete();
//
//	String getAll();

}
